package com.cs.widgetrv.entity;

import com.chad.library.adapter.base.entity.JSectionEntity;

import java.io.Serializable;

/**
 * @ClassName: HomeEntity
 * @Date: 2021/12/14
 * @Author: CS
 * @Description:
 */
public class HomeEntity  extends JSectionEntity implements Serializable {
    private boolean isHeader;
    private String header;

    public HomeEntity(boolean isHeader, String header) {
        super();
        this.isHeader = isHeader;
        this.header = header;
    }
    @Override
    public boolean isHeader() {
        return isHeader;
    }

    public String getHeader() {
        return header;
    }

    @Override
    public int getItemType() {
        return super.getItemType();
    }



    public String headerTitle;
    public Class<?> cls;
    public int imageResource;

    public HomeEntity(String headerTitle) {
        super();
        this.headerTitle = headerTitle;
    }

    public HomeEntity(String headerTitle, Class<?> cls, int imageResource) {
        super();
        this.headerTitle = headerTitle;
        this.cls = cls;
        this.imageResource = imageResource;
    }

}
